<!-- --------------------------------分页（底部）------------------------------- -->

<template>
   <div class="demo-pagination-block">
    <el-pagination
      v-model:current-page="currentPage4"
      v-model:page-size="pageSize4"
      :page-sizes="[10, 20, 30, 40]"
      :small="small"
      :disabled="disabled"
      :background="background"
      layout="total, sizes, prev, pager, next, jumper"
      :total="Store.total"
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
    />
  </div>
</template>

<script setup>
import {useStore} from '@/store/index.js'
import { ref } from 'vue'
const currentPage4 = ref(1)
const Store = useStore()


const pageSize4 = ref(10)
const small = ref(false)
const background = ref(true)
const disabled = ref(false)


const handleSizeChange = (val) => {
  console.log(val)
}

//点击下一页
const handleCurrentChange = (val) => {
  Store.count=val
}
</script>

<style>

</style>